﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="EmpStatistic.aspx.cs" Inherits="UI.ModEmployee.EmpStatistic" %>

<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>员工统计</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
        <script type="text/javascript" src="../JS/jsFunction.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            员工档案统计</div>
        <div class="pagetopright">
        </div>
    </div>
  
    <div class="tableRecGray">  
        &nbsp; <asp:DropDownList ID="ddlStateID" runat="server" CssClass="InputCss">
        </asp:DropDownList>&nbsp;<asp:DropDownList ID="ddlDutyID" runat="server" CssClass="InputCss">
        </asp:DropDownList>
        &nbsp;<asp:Button ID="btnByDept" runat="server" Text="按部门统计" CssClass="ButtonCss"
            OnClick="btnByDept_Click" />
        &nbsp;<asp:Button ID="btnBtEdu" runat="server" Text="按学历统计" CssClass="ButtonCss"
            OnClick="btnBtEdu_Click" />
        &nbsp;<asp:Button ID="btnActiveEmp" runat="server" Text="在职员工统计" 
            CssClass="ButtonCss" onclick="btnActiveEmp_Click"
             /><br />
        &nbsp;&nbsp;<asp:DropDownList ID="ddlStateID0" runat="server" CssClass="InputCss">
        </asp:DropDownList>
        &nbsp;<asp:DropDownList ID="ddlDeptID" runat="server" CssClass="InputCss">
        </asp:DropDownList>
        &nbsp;<asp:Button ID="btnByDuty" runat="server" Text="按职位统计" CssClass="ButtonCss"
            OnClick="btnByDuty_Click" />
        &nbsp;<asp:Button ID="btnByArea" runat="server" Text="按区域统计" CssClass="ButtonCss"
            OnClick="btnByArea_Click" />
          </div>

   

    <asp:GridView ID="gvList" runat="server" Width="80%" HorizontalAlign="Center" 
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
        CellPadding="1" GridLines="Horizontal" onrowdatabound="gvList_RowDataBound" 
        ShowFooter="True">
        <AlternatingRowStyle BackColor="#F7F7F7" />
        <Columns>
            <asp:TemplateField HeaderText="行号">
            <ItemTemplate> <%# Container.DataItemIndex + 1%></ItemTemplate>           
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />        
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Center" />
      
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
     <p style="text-align:center;">      
    <asp:Chart ID="chMain"  runat="server" Width="580px">
        <series>
            <asp:Series Name="Series1" ChartType="Column"  ChartArea="ca">
            </asp:Series>
        </series>
        <chartareas>
            <asp:ChartArea Name="ca"> </asp:ChartArea>
        </chartareas>
    </asp:Chart>
    </p>
      
   <br />
    </form>
</body>
</html>
